package com.software.course.controller;

import com.software.course.enity.User;
import com.software.course.service.LoginService;
import com.software.course.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController()
public class UserRoleController {

    @RequestMapping("/login")
    public String getUserSession(HttpSession session){
       User logUser = (User) session.getAttribute("loginUser");
        System.out.println(logUser);
        return "1";
    }
}
